/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  8
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application     scalarTransportFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         0.99;

deltaT          0.01;

writeControl    timeStep;

writeInterval   50;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable true;

functions
{
    samplingLine
    {
        type            sets;
        libs            ("libsampling.so");
        writeControl    writeTime;

        fields          (T);
        interpolationScheme cellPoint;
        setFormat   csv;

        sets
        (
            centrelineData
            {
                type    lineCell;
                axis    xyz;
                nPoints 100;
                start       (0 0.05 0.05);
                end         (1 0.05 0.05);
            }
        );
    }
}

// include the custom scheme library
libs ("libofTutorial15.so");

// ************************************************************************* //

